package org.jetlinks.pro.tenant.event;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import org.hswebframework.web.event.DefaultAsyncEvent;
import org.jetlinks.pro.tenant.TenantAssetManager;

import java.util.Collection;

/**
 * 资产全部解绑事件,当某个类型的资产从全部租户里解绑时触发此事件
 *
 * @author zhouhao
 * @see TenantAssetManager#unbindAllAssets(String, Collection)
 * @since 1.9
 * @deprecated {@link org.jetlinks.pro.assets.event.AssetsUnBindAllEvent}
 */
@Getter
@Setter
@AllArgsConstructor(staticName = "of")
@Deprecated
public class TenantAssetsUnBindAllEvent extends DefaultAsyncEvent {

    /**
     * 资产类型
     *
     * @see org.jetlinks.pro.assets.AssetType
     */
    private String assetType;

    /**
     * 资产ID
     */
    private Collection<String> assetId;

}
